46fd17a397539592f8a220010971963c488f4d6e,src/silvertiger/tutorial/lwjgl/graphic/Window.java,Window,Window,#number#number#CharSequence#boolean#,67

Before Change



        /* Create window with OpenGL 3.2 context */
        long id = glfwCreateWindow(width, height, title, NULL, NULL);
        if (id == NULL) {
            /* Reset and set window hints for OpenGL 2.1 context */
            glfwDefaultWindowHints();
            glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);
            glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1);
            glfwWindowHint(GLFW_RESIZABLE, GL_FALSE);

            /* Create window with OpenGL 2.1 context */
            id = glfwCreateWindow(width, height, title, NULL, NULL);

After Change



        /* Creating a temporary window for getting the available OpenGL version */
        glfwDefaultWindowHints();
        glfwWindowHint(GLFW_VISIBLE, GL_FALSE);
        long temp = glfwCreateWindow(1, 1, "", NULL, NULL);
        glfwMakeContextCurrent(temp);
        GLContext.createFromCurrent();